import { http, toast } from '@/node_modules/uview-plus'

// 密码登录
export const login = (params) => http.post('/exam-user/users/login', params)

// 获取后端验证码（非手机验证码）
export const getBase64Captcha = () => http.get('/exam-user/getBase64Captcha')

// 获取题库
export const getBank = () => http.get('/exam-practice/questionBanks/findAll')
// 获取对应题库的题
export const getAllByBankId = (data) => http.get('/exam-practice/questions/findAllByBankId', { params: data })
//显示空闲地列表
export const showBaseList=(params)=>http.post('/agriculture-land/land/showBaseList',params)


// export const getPhone =()=>http.post('/api.weixin.qq.com/wxa/business/getuserphonenumber',access_token=ACCESS_TOKEN)

export const getAgentMsg = (data) => http.get('/customer-service/agent/message/getMessage', { params: data })

export const sendAgentMsg = (params) => http.post('/customer-service/agent/message/send', params)

//学习资料
export const study=(params)=>http.post('/agriculture-land/data',params)
//光看人数加一
export const studynum=(params)=>http.post('/agriculture-land/num',params)
//学习详细查询
export const studyid=(params)=>http.post('/agriculture-land/id',params)
// 客服界面初始化
export const initAgent=(params)=>http.post('/customer-service/agent/message/init',params)
// 我的土地查询
export const myland=(params)=>http.post('/agriculture-land/select',params)
//土地详细查询
export const mylandyid=(params)=>http.post('/agriculture-land/mylandid',params)
//修改服务状态
export const myservice=(params)=>http.post('/agriculture-land/myservice',params)
//驱虫
export const pest=(params)=>http.post('/agriculture-land/pest',params)
//浇水
export const mywatering=(params)=>http.post('/agriculture-land/mywatering',params)
//所有植物
export const allseed=()=>http.get('/agriculture-land/allseed')
// 种植
export const myplant=(params)=>http.post('/agriculture-land/myplant',params)
// 日记查询
export const logdata=(params)=>http.post('/agriculture-land/logdata',params)
// 仓库数据
export const warehousedata=(params)=>http.post('/agriculture-land/warehousedata',params)
// 仓库详细数据
export const warehouseid=(params)=>http.post('/agriculture-land/warehouseid',params)
// 出售基地
export const sale=(params)=>http.post('/agriculture-land/land/sale',params)
// 已签署
export const sgin=(params)=>http.post('/agriculture-land/sgin',params)
// 合同数据
export const contractdata=(params)=>http.post('/agriculture-land/contractdata',params)
// 合同数据id查询
export const contractid=(params)=>http.post('/agriculture-land/contractid',params)